﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls.UI;
using Cesave.DistributedServices.PermisosModule.WindowsHost.ViewModels.Catalogs.CultivosClasificaciones;

namespace Cesave.DistributedServices.PermisosModule.WindowsHost.Views.Catalogs.CultivosClasificaciones
{
	public partial class CultivosClasificacionesView : Form
	{

		#region Private properties

		/// <summary>
		/// 
		/// </summary>
		private CultivosClasificacionesViewModel _model;

		#endregion

		#region Public properties

		/// <summary>
		/// Barra de espera de la vista.
		/// </summary>
		public RadWaitingBar WaitingBar
		{
			get
			{
				return waitingBar;
			}
		}

		#endregion

		/// <summary>
		/// 
		/// </summary>
		public CultivosClasificacionesView()
		{
			InitializeComponent();
			_model = new CultivosClasificacionesViewModel(this);
		}

		#region Event methods

		/// <summary>
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void WaitingStarted(object sender, EventArgs e)
		{
			waitingBar.Visible = true;
		}

		/// <summary>
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void WaitingEnded(object sender, EventArgs e)
		{
			waitingBar.Visible = false;
		}

		#endregion

	}
}